<template>
  <h1>El-下拉选择框组件</h1>
  <el-select placeholder="请选择你喜欢的城市" v-model="city" style="width: 40%">
    <el-option label="北京" value="bj"></el-option>
    <el-option label="长春" value="cc"></el-option>
    <el-option label="武汉" value="wh"></el-option>
    <el-option label="三亚" value="sy"></el-option>
  </el-select>
  <h4>您选择的城市是：{{city}}</h4>
</template>

<script setup>
import {ref} from "vue";

const city = ref('')
</script>

<style scoped>

</style>